package com.ds.lens.data.service.esservice;

import com.ds.lens.data.common.document.Event;
import com.ds.lens.data.service.repository.EventRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Service;


@Service
public class EventOperateService extends AbstractIndexOperateService<Event> {

    @Autowired
    private EventRepository eventRepository;

    @Override
    protected Class<Event> getIndexClass() {
        return Event.class;
    }

    @Override
    protected ElasticsearchRepository<Event, String> getIndexRepository() {
        return eventRepository;
    }
}
